﻿using System;
using System.Collections.Generic;
using Volo.Abp.Domain.Entities.Auditing;
using YaAppoint.Appointments.Pools;

namespace YaAppoint.Appointments
{
    /// <summary>
    /// 特殊安排
    /// </summary>
    public class ScheduleOverride:FullAuditedEntity<Guid>
    {
        public string Name 
        {
            get
            {
                return $"{Device.Name}  {Date.ToString("MM月dd日")}";
            }
        }

        /// <summary>
        /// 日期
        /// </summary>
        public virtual DateTime Date { get; set; }

        /// <summary>
        /// 号池
        /// </summary>
        public virtual List<Pool> Pools { get; set; }

        /// <summary>
        /// 设备
        /// </summary>
        public virtual Device Device { get; set; }

        /// <summary>
        /// 设备ID
        /// </summary>
        public virtual Guid DeviceId { get; set; }

    }
}
